namespace EFDemo
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("Emp")]
    public partial class Emp
    {
        public int EmpId { get; set; }

        [Required]
        [StringLength(50)]
        public string EmpName { get; set; }

        [StringLength(20)]
        public string EmpCode { get; set; }

        [StringLength(10)]
        public string Gender { get; set; }

        public int? Age { get; set; }

        [Column(TypeName = "date")]
        public DateTime? InDate { get; set; }

        public int DeptId { get; set; }

        [ForeignKey(nameof(DeptId))]
        public virtual Dept Dept { get; set; }
    }
}
